/**
 * Created by XianTao on 2016/11/12
 * <p/>
 * Copyright (c) 2015-2015
 * Apache License
 * Version 2.0, January 2004
 * http://www.apache.org/licenses/
 */
package org.lego.biz.wechat.lechuan.base.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.lego.jpa.base.entity.UUIDEntity;

import javax.persistence.*;

/**
 * 群发的图文及对应的礼品
 */

@Entity
@Table(name = "le_push_news")
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class PushNews extends UUIDEntity {
    @Lob
    private String newsUrl; // 微信推送图文的url
    @ManyToOne
    @JoinColumn(name = "prize_id")
    private Prize prize;      // 礼品
    private Integer prizeTotal;     // 礼品总个数
    private Integer prizeNumber;    // 单个礼品数量
}
